<template>
  <el-card class="pagetools-container">
    <el-row type="flex" justify="space-between" align="middle">
      <el-col v-if="showBefore">
        <i class="el-icon-info" />
        <slot name="before" />
      </el-col>
      <el-col>
        <el-row type="flex" justify="end">
          <slot name="after" />
        </el-row>
      </el-col>
    </el-row>
  </el-card>
</template>
<script>
export default {
  props: {
    showBefore: {
      type: Boolean,
      default: false
    }
  }
}
</script>
<style scoped>
.pagetools-container {
  height: 60px;
}
</style>
